package day03;

public class Ifelse {

    public static void main(String[] args) {

        double price = 300.0;
        if (price >= 500) {
            price *= 0.8;
        } else {
            price *= 0.9;
        }
        System.out.println("您消费了" + price + "元");

        int score = 85;
        if (score >= 0 && score <= 100) {
            System.out.println("成绩合法您的成绩是" + score);
        } else {
            System.out.println("违法参数");
        }


    }
}

